package com.ysw.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "m_shop")
public class Shop {
    @Id
    @KeySql(useGeneratedKeys=true)

    @ExcelProperty("编号")
    @ColumnWidth(20)
    private Integer id;

    @ExcelProperty("商品类型")
    @ColumnWidth(20)
    private String type;

    @ExcelProperty("商品数量")
    @ColumnWidth(20)
    private Integer number;
}
